package string;

public class Test3 {
    public static void main(String[] args) {
        String s1 = "a"+"b"+"c";
        String s2 = "ab"+"c";
        String s3 = "a"+"bc";
        String s4 = "abc";
        String s5 = "abc"+"";
        //在常量池中只存一个字符串 "abc"
        String s6 = new String("abc");

    }
}
